import os

from volcenginesdkarkruntime import Ark

client = Ark(api_key="d52e49a1-36ea-44bb-bc6e-65ce789a72f6")

resp = client.multimodal_embeddings.create(
    model="doubao-embedding-vision-250615",
    encoding_format="float",
    input=[
        {
            "image_url": {
                "url": "https://ark-project.tos-cn-beijing.volces.com/images/view.jpeg"
            },
            "type": "image_url",
        },
    ],
)
result = resp.model_dump()
print(result["data"]["embedding"])
